<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>English Test - Login</title>
    <link rel="stylesheet" type="text/css" href="/css/login.css">
</head>
<body>

<div class="login-container">
    <h2>英语刷题系统</h2>

    <form action="/login" method="post">
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" id="username" name="username" required>
        </div>

        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" id="password" name="password" required>
        </div>

        <div th:if="${error}" class="error" th:text="${error}"></div>

        <button type="submit">登录</button>
    </form>

    <div class="register-link">
        还没有账号? <a href="register">点击注册</a>
    </div>
</div>
</body>
</html>